"use strict";
var Project_1 = require('../../models/Project');
var UpdateProjectDto = (function () {
    function UpdateProjectDto() {
    }
    UpdateProjectDto.toProject = function (id, body) {
        var project = new Project_1.Project();
        project._id = id;
        project.title = body.title;
        project.description = body.description;
        project.open = body.open;
        return project;
    };
    return UpdateProjectDto;
}());
exports.UpdateProjectDto = UpdateProjectDto;
